#include <iostream>
#include <math.h>
using namespace std;
int main() 
{
	float f;
	int x,y,a,b;
	cin>>x;
	f=(-1+sqrt(1+8*x))/2;
	y=f;
	if(f-y!=0)
	{
		y+=1;
	}
	if(y%2 == 0) 
	{
		a=x-(y-1)*y/2;
		b=y+1-a;
	} 
	else
	{
		a=y*(y+1)/2-x+1;
		b=y+1-a;
	} 
	cout<<a<<"/"<<b<<endl;
	return 0;
}
